<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1">
  <tr>
    <th>学号</th>
    <th>姓名</th>
    <th>性别</th>
    <th>年龄</th>
    <th>班级</th>
  </tr>
  <tr th:each="student:${students}">
    <td th:text="${student.id}"></td>
    <td th:text="${student.name}"></td>
    <td>
      <input type="radio" th:checked="${student.gender} eq '男'">男
      <input type="radio" th:checked="${student.gender} eq '女'">女
    </td>
    <td th:text="${student.age}"></td>
    <td>
      <select name="classname">
        <option th:selected="${student.classname} eq '计科1班'">计科1班</option>
        <option th:selected="${student.classname} eq '计科2班'">计科2班</option>
        <option th:selected="${student.classname} eq '计科3班'">计科3班</option>
      </select>
    </td>
  </tr>
</table>
</body>
</html>